<? $this->load->view('header'); ?>
  <header  id="site-header">
    
  <header  id="site-header">
      
  <section  id="search-bar">
    <div  class="wrapper">
    <form  action="http://m.ichufang.cn/search/caipu/"  method="GET">
        <input  type="text"  class="search"  placeholder="菜谱、食材搜索"  name="keyword"  value="">
        <input  type="submit"  hidden="True"  value="搜索"  class="search-button">
    </form>
    </div>
  </section>

  </header>

  </header>

  

  <section  class="search-content">
      <div  class="wrapper"  id="add-more-container">
      <?php foreach( $search_list as $caipu) :?>
      <article  class="recipe-96-horizon">
        <div  class="body">
          <aside  class="cover" style="background-image: url(<?=$caipu['coverImage']?>);">
          </aside>
          <div  class="content">
            <header  class="name">
              <h2  class="plain"><?=$caipu['title']?></h2>
              <i  class="step-icon"> </i>
            </header>
            <p  class="ing">
                <?php $materials_array = explode('|',$caipu['materials']);?>
                <?php foreach( $materials_array as $materials_list) :?>
                <?php $index++;?>
                  <?php $materials = explode('，',$materials_list);?>
                      <?=@$materials[0]?>,
                <?php endforeach?>
              </p>
              <p  class="stat">
                制作需要 <span  class="score"> <?=$caipu['costtime']?></span>分左右 （<?=$caipu['author']?>）
              </p>
          </div>
        </div>
        <a  href="http://m.ichufang.cn/recipe/<?=$caipu['id']?>"  class="click-expand"></a>
      </article>
      <?php endforeach;?>

      </div>

      <div  class="wrapper"  id="add-more-button">
          
    <input  type="hidden"  id="url"  value="/search/?keyword=<?=$this->input->get('keyword')?>">
    <input  type="hidden"  id="total"  value="1000">
    <input  type="hidden"  id="offset"  value="15">
    <input  type="hidden"  id="limit"  value="15">
    <a  class="addmore"  href="javascript:add_more()"  rel="nofollow">更多</a>

      </div>

  </section>





<? $this->load->view('footer'); ?>